from time import sleep
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
# 1.打开浏览器
from selenium.webdriver.common.keys import Keys

driver = webdriver.Chrome(executable_path='chromedriver.exe')

# 设置隐式等待
driver.implicitly_wait(10)#等待10秒

# 2.输入访问地址（URL）
driver.get("http://121.43.169.97:8848/pageA.html")
# 放大浏览器页面
driver.maximize_window()

# 定位用户名输入框，就输入admin
driver.find_element_by_css_selector("#userA").send_keys("admin")

sleep(3)
driver.quit()